using System;


using System.Collections.Generic;


using System.Text;





namespace HREngine.Bots


{


    class Sim_AV_261 : SimTemplate //* 擎旗奔行者 Flag Runner
    //Whenever a friendly minion dies, gain +1 Attack.
    //每当一个友方随从死亡，便获得+1攻击力。 

	{
        public override void onMinionDiedTrigger(Playfield p, Minion m, Minion diedMinion)


        {


            if (m.own == diedMinion.own)


            {


                int diedMinions = m.own ? p.tempTrigger.ownMinionsDied : p.tempTrigger.enemyMinionsDied;


                if (diedMinions != 0)


                {


                    int residual = (p.pID == m.pID) ? diedMinions - m.extraParam2 : diedMinions;


                    m.pID = p.pID;


                    m.extraParam2 = diedMinions;


                    p.minionGetBuffed(m, residual, 0);


                }


            }


        }


    }


}